import { ajaxPost } from "@/utils/request.js"

// 微信登录
export const wxLogin = (data,config)=>{
	let url = '/wxLogin'
	return ajaxPost(url,data,config)
}

// 获取手机号
export const getWxPhoneInfo = (data,config)=>{
	let url = '/getWxPhoneInfo'
	return ajaxPost(url,data,config)
}

// 注册
export const register = (data,config)=>{
	let url = '/register'
	return ajaxPost(url,data,config)
}

// 登录
export const login = (data,config)=>{
	let url = '/login'
	return ajaxPost(url,data,config)
}